defmodule Cmd do
    @moduledoc false

    def run(command) when is_binary(command) do
        resp = String.to_charlist(command)
               |> :os.cmd()
        #        is_list(resp) || throw({:error, {__MODULE__, :run, command}, unexpected_error()})
        resp
        |> List.to_string()
        |> String.split("\n")
        |> Enum.filter(&(&1 != ""))
    end

end
